clip_to_allocation: true,
});
+ this._ignoreShowAppsButtonToggle = false;
+
this._searchEntry = new St.Entry({
style_class: 'search-entry',
/* Translators: this is the text displayed
}
_onShowAppsButtonToggled() {
+ if (this._ignoreShowAppsButtonToggle)
+ return;
+
const checked = this.dash.showAppsButton.checked;
const value = checked
animateToOverview() {
this.viewSelector.animateToOverview();
+
+ this._stateAdjustment.value = ControlsState.HIDDEN;
+ this._stateAdjustment.ease(ControlsState.WINDOW_PICKER, {
+ duration: Overview.ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ });
}
animateFromOverview() {
+ this._ignoreShowAppsButtonToggle = true;
+
this.viewSelector.animateFromOverview();
+
+ this._stateAdjustment.ease(ControlsState.HIDDEN, {
+ duration: Overview.ANIMATION_TIME,
+ mode: Clutter.AnimationMode.EASE_OUT_QUAD,
+ onStopped: () => {
+ this.dash.showAppsButton.checked = false;
+ this._ignoreShowAppsButtonToggle = false;
+ },
+ });
}
get searchEntry() {
this._leavingOverview = false;
this._gestureActive = false; // touch(pad) gestures
- this._animating = false;
this.connect('destroy', this._onDestroy.bind(this));
}
}
animateFromOverview() {
- this._animating = true;
-
for (let i = 0; i < this._workspacesViews.length; i++)
this._workspacesViews[i].animateFromOverview();
this._leavingOverview = true;
this._updateSwipeTracker();
-
- const { primaryIndex } = Main.layoutManager;
- const { x, y, width, height } =
- Main.layoutManager.getWorkAreaForMonitor(primaryIndex);
- this._getPrimaryView().ease({
- x, y, width, height,
- duration: ANIMATION_TIME,
- mode: Clutter.AnimationMode.EASE_OUT_QUAD,
- onStopped: () => (this._animating = false),
- });
}
vfunc_hide() {
- this._animating = false;
-
if (this._restackedNotifyId > 0) {
Main.overview.disconnect(this._restackedNotifyId);
this._restackedNotifyId = 0;
}
_updateWorkspacesViews() {
- this._animating = false;
-
for (let i = 0; i < this._workspacesViews.length; i++)
this._workspacesViews[i].destroy();
this._syncActualGeometryLater =
Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => {
- if (this._animating)
- return GLib.SOURCE_CONTINUE;
-
this._syncWorkspacesActualGeometry();
this._syncActualGeometryLater = 0;